package DuoTai;

public class TestDriver3 {
    public static void main(String[] args) {

        //通过类名访问静态的属性和方法
        System.out.println("---------静态属性和方法-------------");
        Student.stuName = "王麻子";
        Student.doExaming();
        System.out.println();

        System.out.println("----------非静态属性和方法------------");
        Student stu = new Student();
        stu.doStuding();
        System.out.println();

        System.out.println("----------------------");
        Student stu1 = new Student();
        stu1.doStuding();
        System.out.println();

        System.out.println("----------------------------");
        test01();
    }

    /**
     * final 关键字
     */

    public  static  void  test01(){
        //定义final关键字的类型
        final int i = 0 ;

        //final关键字的方法-----地址的值不能变
        //对于对象类型----地址的值不能变
        final Student student= new Student();
        student.setStuName("王五");
        student.setStuNum("123456");



    }
}
